<?php
use think\Cookie;
use think\Db;
function getCookie()
{
    return Cookie::get('admiNumber');
}
function getUser()
{
    $data=db('user')->where('Number',getCookie())->select();
    return $data['0']['user'];
}
